/**
 *
 */
package co.fitstart.tencent.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.demo2do.core.utils.DateFormatUtils;

/**
 * @author downpour
 *
 */
@Controller
@RequestMapping("")
public class HealthCareChecking {

    /**
     * Check server alive and return the server time.
     * @return
     */
    @RequestMapping(value = "/check-alive", method = RequestMethod.GET)
    public @ResponseBody String checkHealth() {
        return "Alive at " + DateFormatUtils.getCurrentTimeMillis();
    }

}
